#include"Sort.h"

void test()
{
	int N = 30;
	int* p1 = (int*)malloc(sizeof(int) * N);
	if (p1 == NULL)
	{
		perror("test->malloc failed");
		exit(-1);
	}
	int i = 0;
	for (i = 0; i < N; i++)
	{
		p1[i] = rand() % 1000;
	}
	PrintArray(p1, N);
	//MergeSortNonR(p1, N);
	CountSort(p1, N);
	PrintArray(p1, N);
	free(p1);
}

int main()
{
	srand((unsigned)time(NULL));
	test();
	return 0;
}



